<?php

namespace App\Http\Model;

class GoodsImage extends Base {

    protected $hidden = [
        'goods_id', 'sort_order', 'created_at', 'updated_at'
    ];

    public function getImgUrlAttribute($value)
    {
        if (empty($value)) return $value;

        return env('CDN_DOMAIN') . $value;
    }
}



